package com.monitor.service.impl;

import com.monitor.common.response.ResponseFactory;
import com.monitor.common.response.Result;
import com.monitor.dao.SysUserMapper;
import com.monitor.pojo.SysUser;
import com.monitor.service.SettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName SettingServiceImpl
 * @Package com.monitor.service.impl
 * @Description TODO
 * @Author zhixingbai
 * @Create 2018/10/1510:43
 */
@Service
public class SettingServiceImpl implements SettingService {

    @Autowired
    private SysUserMapper sysUserMapper;
    @Override
    public Result setting(SysUser sysUser) {
        sysUserMapper.updateByPrimaryKeySelective(sysUser);
        return ResponseFactory.build(sysUser);
    }
}
